package com.wintop.youyuan.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "basedata")
public class BaseData {// 基本信息表
	private int id;
	private String userid;
	private String qq;
	private int height;// 身高
	private int blood;// 血型
	private int weight;// 体重
	private int profession;// 职业
	private int education;// 学历
	private int marryCondition;// 婚姻状况
	private int monthlyIncome;// 月收入
	private String birthplace;// 籍贯
	private int house;// 是否有房
	private String birthday;// 生日
	private String apartment;// 居住地
	private String icon;// 头像

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getBlood() {
		return blood;
	}

	public void setBlood(int blood) {
		this.blood = blood;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public int getProfession() {
		return profession;
	}

	public void setProfession(int profession) {
		this.profession = profession;
	}

	public int getEducation() {
		return education;
	}

	public void setEducation(int education) {
		this.education = education;
	}

	public int getMarryCondition() {
		return marryCondition;
	}

	public void setMarryCondition(int marryCondition) {
		this.marryCondition = marryCondition;
	}

	public int getMonthlyIncome() {
		return monthlyIncome;
	}

	public void setMonthlyIncome(int monthlyIncome) {
		this.monthlyIncome = monthlyIncome;
	}

	public String getBirthplace() {
		return birthplace;
	}

	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}

	public int getHouse() {
		return house;
	}

	public void setHouse(int house) {
		this.house = house;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getApartment() {
		return apartment;
	}

	public void setApartment(String apartment) {
		this.apartment = apartment;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public BaseData() {
		super();
		// TODO Auto-generated constructor stub
	}

	public BaseData(int id, String userid, String qq, int height, int blood,
			int weight, int profession, int education, int marryCondition,
			int monthlyIncome, String birthplace, int house, String birthday,
			String apartment, String icon) {
		super();
		this.id = id;
		this.userid = userid;
		this.qq = qq;
		this.height = height;
		this.blood = blood;
		this.weight = weight;
		this.profession = profession;
		this.education = education;
		this.marryCondition = marryCondition;
		this.monthlyIncome = monthlyIncome;
		this.birthplace = birthplace;
		this.house = house;
		this.birthday = birthday;
		this.apartment = apartment;
		this.icon = icon;
	}

	@Override
	public String toString() {
		return "BaseData [id=" + id + ", userid=" + userid + ", qq=" + qq
				+ ", height=" + height + ", blood=" + blood + ", weight="
				+ weight + ", profession=" + profession + ", education="
				+ education + ", marryCondition=" + marryCondition
				+ ", monthlyIncome=" + monthlyIncome + ", birthplace="
				+ birthplace + ", house=" + house + ", birthday=" + birthday
				+ ", apartment=" + apartment + ", icon=" + icon + "]";
	}

}
